//
//  KWMBasePageVC.h
//  iForeseaLife
//
//  Created by kevin on 7/7/14.
//  Copyright (c) 2014 Kollway Mobile. All rights reserved.
//

#import "KWMBaseVC.h"
#import "EGOViewCommon.h"

@class EGORefreshTableFooterView;
@class EGORefreshTableHeaderView;

/**
 *
 * 用法:
 
 1.Override loadData和targetTableView
 
 2.分页获取数据
 if(!self.hasNextPage){
 [self showToast:NSLocalizedString(@"WarnLastPage", @"WarnLastPage")];
 return;
 }
 
 3.添加数据到dataList,并设置分页数据
 [self appendDataList];
 */
@interface KWMBasePageVC : KWMBaseVC<UITableViewDataSource,UITableViewDelegate,EGORefreshTableDelegate>

@property (nonatomic) NSMutableArray *dataList;
@property (nonatomic) NSNumber *pageSize;
@property (nonatomic) NSNumber *totalCount;
@property (nonatomic) NSNumber *currentPage;
@property (nonatomic) NSNumber *serverTime;

@property (nonatomic) BOOL isReload;
@property (nonatomic) BOOL hasNextPage;

- (void)appendDataList:(KWMRequestListResult *)resultList;
- (MBProgressHUD *)showAlertLoading;
@property (NS_NONATOMIC_IOSONLY, readonly, strong) UITableView *targetTableView;

@end
